home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
- <background>
- <id>4125</id>
- <filler1>0</filler1>
- <bitmap>BMAP_4803.pbm</bitmap>
- <cantDelete> <false /> </cantDelete>
- <showPict> <true /> </showPict>
- <dontSearch> <false /> </dontSearch>
- <link rel="stylesheet" type="text/css" href="stylesheet_3092.css" />
- <part>
- <id>3</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <true /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <true /> </lockText>
- <rect>
- <left>40</left>
- <top>113</top>
- <right>468</right>
- <bottom>294</bottom>
- </rect>
- <style>scrolling</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>bold</textStyle>
- <textHeight>16</textHeight>
- <name>Table of Contents</name>
- <script>on mouseUp
- if the value of the clickLine is not empty then
- select the clickLine
- lock screen
- put the value of the clickLine into goChapter
- play flute C
- go cd goChapter
- unlock screen with visual effect wipe right
- end if
- end mouseUp</script>
- </part>
- <part>
- <id>4</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <true /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <true /> </lockText>
- <rect>
- <left>0</left>
- <top>19</top>
- <right>512</right>
- <bottom>54</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Helvetica</font>
- <textSize>20</textSize>
- <textStyle>outline</textStyle>
- <textStyle>italic</textStyle>
- <textStyle>bold</textStyle>
- <textHeight>26</textHeight>
- <name>Book Title</name>
- <script>on mouseUp
- put me into oldTitle
- ask "Enter your title:" with oldTitle
- if it is empty then
- put "Click Here To Enter Title" into me
- exit mouseUp
- end if
- put it into newTitle
- if number of chars of newTitle > 31 then
- answer "No more than 31 characters permitted!"
- exit mouseUp
- end if
- put newTitle into me
- end mouseUp</script>
- </part>
- <part>
- <id>5</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>15</left>
- <top>73</top>
- <right>65</right>
- <bottom>88</bottom>
- </rect>
- <style>rectangle</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>9</textSize>
- <textStyle>bold</textStyle>
- <name>Add</name>
- <script>on mouseUp
- play "harpsichord" "e"
- global newChapter
- answer "Add recipe or chapter?" with "Chapter" or "Recipe" or "Abort"
- if it is "Chapter" then
- ask "Enter the chapter:"
- if it is empty then exit mouseUp
- if number of chars of it > 31 then
- answer "No more than 31 characters permitted!"
- exit mouseUp
- end if
- if first char of it is a number then
- answer "First character must be a letter!"
- exit mouseUp
- end if
- if it is not empty then
- set cursor to watch
- put it into newChapter
- repeat with x = 1 to number of lines of bg fld "Table of Contents"
- if line x of bg fld "Table of Contents" is newChapter then
- answer "A chapter" && newChapter && "already exists!"
- exit mouseUp
- end if
- end repeat
- if bg fld "Table of Contents" is empty then
- put newChapter into bg fld "Table of Contents"
- createChapterCard
- exit mouseUp
- end if
- if bg fld "Table of Contents" is not empty then
- repeat
- if last char of bg fld "Table of Contents" is return then ¬
- delete last char of bg fld "Table of Contents"
- if last char of bg fld "Table of Contents" is not return ¬
- then exit repeat
- end repeat
- put return & newChapter after bg fld "Table of Contents"
- createChapterCard
- end if
- end if
- end if
- if it is "Recipe" then
- if bg fld "Table of Contents" is empty then
- answer "No chapters yet!"
- exit mouseUp
- end if
- if bg fld "Table of Contents" is not empty then
- put bg fld "Table of Contents" into bg fld "Table of Contents" ¬
- of cd "Add Recipe"
- lock screen
- go cd "Add Recipe"
- end if
- end if
- end mouseUp
-
- on createChapterCard
- global newChapter
- lock screen
- go cd "Chapter"
- doMenu "New Card"
- set the name of this card to newChapter
- put newChapter into bg fld "Chapter"
- go cd "Table of Contents"
- end createChapterCard
- </script>
- </part>
- <part>
- <id>6</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>15</left>
- <top>92</top>
- <right>65</right>
- <bottom>107</bottom>
- </rect>
- <style>rectangle</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>9</textSize>
- <textStyle>bold</textStyle>
- <name>Delete</name>
- <script>on mouseUp
- play "harpsichord" "e"
- answer "Delete chapter or recipe?" with "Chapter" or "Recipe" or "Abort"
- if it is "Abort" then exit mouseUp
- if it is "Chapter" then
- -- answer "You will be deleting a CHAPTER with all of its recipes. Continue?" with ¬
- -- "Continue" or "Abort"
- -- if it is "Continue" then
- put bg fld "Table of Contents" into bg fld "Table of Contents" of cd "Delete Chapter"
- lock screen
- go cd "Delete Chapter"
- unlock screen
- -- end if
- end if
- if it is "Recipe" then
- put bg fld "Table of Contents" into bg fld "Table of Contents" of cd "Delete Recipe"
- lock screen
- go cd "Delete Recipe"
- end if
- end mouseUp</script>
- </part>
- <part>
- <id>11</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <true /> </dontSearch>
- <sharedText> <true /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <true /> </lockText>
- <rect>
- <left>188</left>
- <top>79</top>
- <right>314</right>
- <bottom>96</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Geneva</font>
- <textSize>9</textSize>
- <textStyle>outline</textStyle>
- <textStyle>bold</textStyle>
- <textHeight>12</textHeight>
- <name></name>
- <script></script>
- </part>
- <part>
- <id>12</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <true /> </dontSearch>
- <sharedText> <true /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <true /> </lockText>
- <rect>
- <left>128</left>
- <top>310</top>
- <right>381</right>
- <bottom>331</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Geneva</font>
- <textSize>9</textSize>
- <textStyle>outline</textStyle>
- <textStyle>bold</textStyle>
- <textHeight>12</textHeight>
- <name></name>
- <script></script>
- </part>
- <part>
- <id>13</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>80</left>
- <top>73</top>
- <right>130</right>
- <bottom>88</bottom>
- </rect>
- <style>rectangle</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>9</textSize>
- <textStyle>bold</textStyle>
- <name>Arrange</name>
- <script>on mouseUp
- play "harpsichord" "e"
- if number of lines of bg fld "Table of Contents" < 2 then
- answer "Not enough chapters to arrange!"
- exit mouseUp
- end if
- lock screen
- put bg fld "Table of Contents" into bg fld "Table of Contents" of cd "Arrange TOC"
- go cd "Arrange TOC"
- end mouseUp</script>
- </part>
- <part>
- <id>17</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>80</left>
- <top>92</top>
- <right>130</right>
- <bottom>107</bottom>
- </rect>
- <style>rectangle</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>9</textSize>
- <textStyle>bold</textStyle>
- <name>Sort</name>
- <script>on mouseUp
- sort bg fld "Table of Contents" ascending international
- end mouseUp</script>
- </part>
- <part>
- <id>18</id>
- <type>field</type>
- <visible> <false /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <true /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>315</left>
- <top>58</top>
- <right>384</right>
- <bottom>93</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Geneva</font>
- <textSize>9</textSize>
- <textStyle>outline</textStyle>
- <textStyle>bold</textStyle>
- <textHeight>12</textHeight>
- <name>Easter Egg Field</name>
- <script></script>
- </part>
- <part>
- <id>19</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>419</left>
- <top>44</top>
- <right>475</right>
- <bottom>90</bottom>
- </rect>
- <style>transparent</style>
- <showName> <false /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Easter Egg Button</name>
- <script>on mouseEnter
- show bg fld "Easter Egg Field"
- end mouseEnter
-
- on mouseLeave
- hide bg fld "Easter Egg Field"
- end mouseLeave</script>
- </part>
- <part>
- <id>20</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>419</left>
- <top>44</top>
- <right>475</right>
- <bottom>90</bottom>
- </rect>
- <style>transparent</style>
- <showName> <false /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Easter Egg Button</name>
- <script>on mouseEnter
- show bg fld "Easter Egg Field"
- end mouseEnter
-
- on mouseLeave
- hide bg fld "Easter Egg Field"
- end mouseLeave</script>
- </part>
- <part>
- <id>21</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>15</left>
- <top>300</top>
- <right>65</right>
- <bottom>315</bottom>
- </rect>
- <style>rectangle</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>9</textSize>
- <textStyle>bold</textStyle>
- <name>Find</name>
- <script>on mouseUp
- global buttonName
- put "Table of Contents" into buttonName
- play "harpsichord" "e"
- doMenu "Find..."
- end mouseUp</script>
- </part>
- <content>
- <layer>background</layer>
- <id>11</id>
- <text>Table of Contents</text>
- </content>
- <content>
- <layer>background</layer>
- <id>12</id>
- <text>Select Chapter Above To Navigate</text>
- </content>
- <content>
- <layer>background</layer>
- <id>18</id>
- <text>Bon
- appétit!</text>
- </content>
- <name></name>
- <script></script>
- </background>
-